# -*- coding: utf-8 -*-
# @FileName : data.py
# @Time     : 2023/6/9 21:09
# @Author   : Zhong Runke
from flask import Blueprint, send_from_directory
from application import app

route_data = Blueprint('data', __name__)

@route_data.route("/upload/<path:filename>")
def index(filename):
    print("=======================================")
    print(app.root_path)
    return send_from_directory(app.root_path + "/data/upload/", filename)




